﻿//
// File: ObjectManager.cs
//
// Author:
//   Steinar Herland <steinar.herland@gecko.no>
//
// Copyright (C) 2008 Steinar Herland
// Copyright (C) 2008 Gecko Informasjonssystmer AS (http://www.gecko.no)
//
// Licensed under the terms of the GNU Lesser General Public License
// (http://www.opensource.org/licenses/lgpl-license.php)

using System;
using System.Collections.Generic;
using GeoCache.Core;

namespace GeoCache
{
	internal static class ObjectManager
	{
		public static IService GetService(string id, IDictionary<string, object> config)
		{
			return Resolver.Resolve<IService>(id, config);
		}

		public static ICache GetCache(string id, IDictionary<string, object> config)		
		{
			return Resolver.Resolve<ICache>(id, config);
		}
	}
}
